<!DOCTYPE html>
<html lang="en">
<head>
    <title>数据中心日常巡检</title>
    <meta charset="utf-8">
    <style>
        .container {
            text-align: center;
            background-color: white;
            padding: 20px;
            margin: 0 auto; /* 设置上下边距为零 */
            border-radius: 10px;
            padding-top: 0px;
            padding-bottom: 0px;
        }
        .jifang1 {
             background-color: #6E8B3D;
             color: white;
        }
        .jifang11 {
             background-color: #5D478B;
             color: white;
        }
        .cunchu5510 {
             background-color: #8E388E;
             color: white;
        }
        .cunchuVM {
             background-color: #C67171;
             color: white;
        }
        .cunchuOAV16 {
            background-color: #CD5845;
            color: white;
        }
        .cunchuLENOVOnc {
            background-color: #228B22;
            color: white;
        }
        .cunchuLENOVOcaiwu {
            background-color: #00868B;
            color: white;
        }
        .green-background {
            background-color: #e0e0e0;
            color: black;
        }
        .td_bg {
            background-color: #FFFAFA;
        }
        table {
            border-collapse: collapse;
            width: 70%;
            text-align: center;
            margin: 0 auto;
            margin-top: 20px;
        }
        td {
            border: 1px solid #dddddd;
            padding: 8px;
            font-size: 14px;
        }
        th {
            background-color: #f2f2f2;
            padding: 10px;
            font-size: 20px;
        }
        .left-align {
            text-align: left;
        }
        .info-container {
            text-align: center;
            margin-bottom: 20px;
            display: flex; /* 添加这行样式 */
            flex-direction: row; /* 添加这行样式 */
            justify-content: center; /* 添加这行样式 */
        }

    </style>
</head>
<body>
<h1 align="center">数据中心巡检报告 - <span id="currentDateTime"></span></h1>
<script>
    // 获取当前日期和时间
    const currentDateTime = new Date();

    // 格式化日期部分
    const formattedDate = currentDateTime.toLocaleDateString();

    // 格式化时间部分
    const hours = currentDateTime.getHours();
    const minutes = currentDateTime.getMinutes();
    const formattedTime = `${hours}:${minutes}`;

    // 更新标题中的日期和时间
    const currentDateTimeElement = document.getElementById('currentDateTime');
    currentDateTimeElement.textContent = `${formattedDate} ${formattedTime}`;
</script>
<!--1号楼机房;-->

    <div class="container">
        <table>
            <tr>
                <th colspan="6" class="jifang1">
                <a href="https://10.106.134.15:31943/login/login.action?target=https%3A%2F%2F10.106.134.15%3A31943%2Findex.html" style="color: white; text-decoration: none;" target="_blank">
                    1号楼机房
                </a>
                </th>
            </tr>
            <tr>
                <td class="td_bg">平均湿度</td>
                <td colspan="2">{{ humiavg }} %</td>
                <td class="td_bg">最大湿度</td>
                <td colspan="2">{{ humimax }} %</td>
            </tr>
            <tr>
                <td class="td_bg">平均温度</td>
                <td colspan="2">{{ tempavg }} ℃</td>
                <td class="td_bg">最大温度</td>
                <td colspan="2">{{ tempmax }} ℃</td>
            </tr>
            <tr>
                <td class="td_bg">告警信息</td>
                <td colspan="5">{{ combined_string }}</td>
            </tr>
            <tr>
                <td class="td_bg">A模块UPS 供电状态</td>
                <td colspan="2">{{ second_last_value }}</td>
                <td class="td_bg">A UPS 后备时间</td>
                <td colspan="2">{{ last_value }} 分钟</td>
            </tr>
            <tr>
                <td class="td_bg">B模块UPS 供电状态</td>
                <td colspan="2">{{ B_UPS_status }}</td>
                <td class="td_bg">B UPS 后备时间</td>
                <td colspan="2">{{ B_time_value }} 分钟</td>
            </tr>
            <tr>
                <td class="td_bg">摄像头监控是否正常</td>
                <td contenteditable="true" required colspan="5"> </td>
           </tr>
        </table>
    </div>

<!--11号楼机房-->
<!--11号楼机房;-->
    <div class="container">
        <table>
            <tr>
                <th colspan="6" class="jifang11">11号楼机房</th>
            </tr>
            <tr>
                <td class="td_bg">平均湿度</td>
                <td colspan="1">{{ avg_sd }} %</td>
                <td class="td_bg">最大湿度</td>
                <td colspan="1">{{ max_sd }} %</td>
                <td class="td_bg">南侧空调温度设定</td>
                <td colspan="1">{{ nckt_wdsd_value }} %</td>

            </tr>
            <tr>
                <td class="td_bg">平均温度</td>
                <td colspan="1">{{ avg_wd }} ℃</td>
                <td class="td_bg">最大温度</td>
                <td colspan="1">{{ max_wd }} ℃</td>
                <td class="td_bg">北侧空调温度设定</td>
                <td colspan="1">{{ bckt_wdsd_value }} ℃</td>
            </tr>
            <tr>
                <td class="td_bg">告警信息</td>
                <td colspan="5" class="left-align">{{  alarm_value }}</td>
            </tr>
            <tr class="td_bg">
                <td>UPS名称</td>
                <td>供电状态</td>
                <td>电池续航时间</td>
                <td>锂电池组电压</td>
                <td>锂电池寿命</td>
                <td>电池剩余容量</td>
            </tr>
            <tr>
                <td class="td_bg">11号楼南侧_UPS-A</td>
                <td >{{  UPSA_gdzt_value }} </td>
                <td>{{ UPSA_bdsj_value }} </td>
                <td>{{ UPSA_dcdy_value }} </td>
                <td>{{ dianchi_nance_A_soh_value }} </td>
                <td>{{ UPSA_syrl_value }} </td>
            </tr>
            <tr>
                <td class="td_bg">11号楼南侧_UPS-B</td>
                <td >{{  UPSB_gdzt_value }} </td>
                <td>{{ UPSB_bdsj_value }} </td>
                <td>{{  UPSB_dcdy_value }} </td>
                <td>{{  dianchi_nance_B_soh_value }} </td>
                <td>{{ UPSB_syrl_value }} </td>
            </tr>
            <tr>
                <td class="td_bg">11号楼北侧机房UPS</td>
                <td >{{ UPS_beice_gdzt_value }} </td>
                <td>{{ UPS_beice_bdsj_value }} </td>
                <td>{{ UPS_beice_dcdy_value }} </td>
                <td>{{ dianchi_beice_soh_value }} </td>
                <td>{{ UPS_beice_syrl_value }} </td>
            </tr>
            <tr>
                <td class="td_bg">摄像头监控是否正常</td>
                <td contenteditable="true" required colspan="5"> </td>
            </tr>
<!--            <tr>-->
<!--                <td>101房间_UPS</td>-->
<!--                <td >供电状态：{{  tempmax }} ℃</td>-->
<!--                <td>电池续航时间{{ tempmax }} </td>-->
<!--                <td>锂电池组电压{{  tempmax }} </td>-->
<!--                <td>锂电池寿命{{  tempmax }} </td>-->
<!--                <td>电池剩余容量{{ tempmax }} </td>-->
<!--            </tr>-->





        </table>
    </div>
<!--内乡专有云;-->
    <div class="container">
        <table>
            <tr>
                <th colspan="6" class="jifang11">
                <a href="https://10.144.1.11:31943/unisso/login.action?service=%2Funisess%2Fv1%2Fauth%3Fservice%3D%252Fnetecoportal%252Fassets%252Fbuild%252Findex.html&decision=1#/pages/dc/view/_t=1695346188781/st1695346198801/NE=33554433/25d/topo/" style="color: white; text-decoration: none;" target="_blank">
                    内乡专有云
                </a>
                </th>
            </tr>
            <tr>
                <td class="td_bg">平均湿度</td>
                <td colspan="2"> <input type="text" name="averageHumidity" placeholder="请输入平均湿度" required>%</td>
                <td class="td_bg">最大湿度</td>
                <td colspan="2"> <input type="text" name="maxHumidity" placeholder="请输入最大湿度" required>%</td>
            </tr>
            <tr>
                <td class="td_bg">平均温度</td>
                <td colspan="2"> <input type="text" name="averagewendu" placeholder="请输入平均温度" required>℃</td>
                <td class="td_bg">最大温度</td>
                <td colspan="2"> <input type="text" name="averageshidu" placeholder="请输入最大温度" required>℃</td>
            </tr>
            <tr>
                <td class="td_bg">环控有无告警</td>
                <td contenteditable="true" required colspan="5"> </td>
            </tr>
            <tr>
                <td class="td_bg">摄像头监控是否正常，监控主机：10.110.1.250</td>
                <td contenteditable="true" required colspan="5"> </td>
            </tr>
        </table>
    </div>
<!--电池巡检信息;-->
    <div class="container">
        <table>
            <tr>
                <th colspan="9" class="jifang11">电池巡检信息</th>
            </tr>
            <tr>
                <td rowspan="2"  class="td_bg">电池名称</td>
                <td rowspan="2"  class="td_bg">电池Ah数</td>
                <td rowspan="2"  class="td_bg">出厂内阻值</td>
                <td colspan="3" class="td_bg">最低电压</td>
                <td colspan="3" class="td_bg">最大内阻</td>
            <tr>
                <td rowspan="1"  colspan="1" class="td_bg" >最低电压值（V）</td>
                <td rowspan="1"  colspan="1" class="td_bg" >电池编号</td>
                <td rowspan="1"  colspan="1" class="td_bg" >内阻（mΩ）</td>
                <td class="td_bg">最大内阻值（mΩ）</td>
                <td class="td_bg">电池编号</td>
                <td class="td_bg">电压（V）</td>
            </tr>
            <tr>
                <td class="td_bg" >1号楼A模块第一组</td>
                <td >100Ah</td>
                <td >约4.3mΩ</td>
                <td >{{xdc_A_32_min_v}} </td>
                <td >{{xdc_A_32_min_v_sn}} </td>
                <td >{{xdc_A_32_min_v_dz}} </td>
                <td >{{xdc_A_160_min_dz}} </td>
                <td >{{xdc_A_160_min_dz_sn}} </td>
                <td >{{xdc_A_160_min_dz_v}} </td>
            </tr>
            <tr>
                <td class="td_bg" >1号楼A模块第二组</td>
                <td >100Ah</td>
                <td >约4.3mΩ</td>
                <td >{{xdc_A_64_min_v}} </td>
                <td >{{xdc_A_64_min_v_sn}} </td>
                <td >{{xdc_A_64_min_v_dz}} </td>
                <td >{{xdc_A_192_min_dz}} </td>
                <td >{{xdc_A_192_min_dz_sn}} </td>
                <td >{{xdc_A_192_min_dz_v}} </td>
            </tr>
            <tr>
                <td class="td_bg" >1号楼B模块第一组</td>
                <td >200Ah</td>
                <td >约2.9mΩ</td>
                <td >{{xdc_B_1_mini_dianya_value}} </td>
                <td >{{xdc_B_1_mini_dianya_sn}} </td>
                <td >{{xdc_B_1_mini_dianya_neizu}} </td>
                <td >{{xdc_B_1_max_neizu_value}} </td>
                <td >{{xdc_B_1_max_neizu_sn}} </td>
                <td >{{xdc_B_1_max_neizu_dc_dianya}} </td>
            </tr>
            <tr>
                <td class="td_bg" >1号楼B模块第二组</td>
                <td >200Ah</td>
                <td >约2.9mΩ</td>
                <td >{{xdc_B_2_mini_dianya_value}} </td>
                <td >{{xdc_B_2_mini_dianya_sn}} </td>
                <td >{{xdc_B_2_mini_dianya_neizu}} </td>
                <td >{{xdc_B_2_max_neizu_value}} </td>
                <td >{{xdc_B_2_max_neizu_sn}} </td>
                <td >{{xdc_B_2_max_neizu_dc_dianya}} </td>
            </tr>
            <tr>
                <td class="td_bg" >1号楼109电池组</td>
                <td >150Ah</td>
                <td >约3.8mΩ</td>
                <td >{{xdc_109_1_mini_dianya_value}} </td>
                <td >{{xdc_109_1_mini_dianya_sn}} </td>
                <td >{{xdc_109_1_mini_dianya_neizu}} </td>
                <td >{{xdc_109_1_max_neizu_value}} </td>
                <td >{{xdc_109_1_max_neizu_sn}} </td>
                <td >{{xdc_109_1_max_neizu_dc_dianya}} </td>
            </tr>
            </tr>

        </table>
    </div>


<!--#散UPS-->
<div class="container">
        <table>
            <tr>
                <th colspan="6" class="jifang11">UPS情况</th>
            </tr>
<!--            #109机房ups信息 -->
            <tr>
                <td class="td_bg" colspan="2">
                <a href="https://10.106.250.34/relogin.asp" style="color: blue; text-decoration: none;" target="_blank">
                    109机房UPS蓄电池
                </a>
                </td>
                <td >UPS1 供电状态 </td>
                <td >{{ ups1_dianchi }} </td>
                <td >UPS2 供电状态 </td>
                <td >{{ ups2_dianchi }} </td>
            </tr>
            <tr>
                <td colspan="2"></td>

                <td >UPS1告警信息</td>
                <td >{{ td1_content }} </td>
                <td >UPS2告警信息</td>
                <td >{{ td2_content }} </td>
            </tr>
<!--109机房结束-->
<!--            金字塔负二-->
            <tr>
                <td class="td_bg" colspan="2">
                <a href="https://10.108.1.229" style="color: blue; text-decoration: none;"  target="_blank">
                    金字塔负二楼UPS蓄电池
                </a>
                </td>
                <td >备电时长 </td>
                <td contenteditable="true" required> </td>
                <td >告警信息 </td>
                <td contenteditable="true" required> </td>
            </tr>

            <tr>
                <td class="td_bg" colspan="2">
                <a href="https://10.106.134.40/" style="color: blue; text-decoration: none;"  target="_blank">
                    1号楼101UPS巡检
                </a>
                </td>
                <td >备电时长 </td>
                <td contenteditable="true" required> </td>
                <td >告警信息 </td>
                <td contenteditable="true" required> </td>
            </tr>
            <tr>
                <td class="td_bg" colspan="2">
                <a href="https://10.106.134.41/" style="color: blue; text-decoration: none;"  target="_blank">
                    1号楼101锂电池巡检
                </a>
                </td>
                <td >运行状态 </td>
                <td contenteditable="true" required> </td>
                <td >告警信息 </td>
                <td contenteditable="true" required> </td>
            </tr>
            <tr>
                <td class="td_bg" colspan="2">
                <a href="https://10.108.5.10" style="color: blue; text-decoration: none;"  target="_blank">
                    科研楼UPS蓄电池
                </a>
                </td>
                <td >备电时长</td>
                <td contenteditable="true" required>min</td>
            </tr>
            <tr>
                <td class="td_bg" colspan="2">
                <a href="https://10.107.44.193" style="color: blue; text-decoration: none;" target="_blank">
                    双子楼1-3楼UPS蓄电池
                </a>
                </td>
                <td>备电时长</td>
                <td contenteditable="true" required>min</td>


            </tr>
            <tr>
                <td class="td_bg" colspan="2">
                <a href="https://10.108.15.20" style="color: blue; text-decoration: none;" target="_blank">
                    监控机房UPS蓄电池
                </a>
                </td>
                <td>备电时长</td>
                <td contenteditable="true" required>min</td>
<!--
            </tr>

        </table>
    </div>
<!DNS连续性-->
<div class="container">
        <table>
            <tr>
                <th colspan="6" class="jifang11">
                <a href="http://10.106.160.38:15601/login?next=%2Fapp%2Fdiscover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-1d,to:now))&_a=(columns:!(_source),filters:!(),index:'40241ae0-3bed-11ee-854f-cfd37b56be1b',interval:auto,query:(language:kuery,query:''),sort:!())" style="color: white; text-decoration: none;" target="_blank">
                    DNS连续性
                </a>
                </th>
            </tr>
            <tr>
                <td class="td_bg">
                    <a href="http://10.106.160.38:15601/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-1d,to:now))&_a=(columns:!(_source),filters:!(),index:'40241ae0-3bed-11ee-854f-cfd37b56be1b',interval:auto,query:(language:kuery,query:''),sort:!())" style="color: blue; text-decoration: none;" target="_blank">
                    30min 最大解析次数
                    </a>
                </td>
                <td > <input type="text" name="averageHumidity" placeholder="30min最大解析次数" required>次</td>
                <td class="td_bg">
		    <a href="http://10.106.160.38:15601/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-30m,to:now))&_a=(columns:!(_source),filters:!(),index:'40241ae0-3bed-11ee-854f-cfd37b56be1b',interval:auto,query:(language:kuery,query:''),sort:!())" style="color: blue; text-decoration: none;" target="_blank">
                    30s 最大解析次数
                    </a>
		</td>
                    </a>
                <td > <input type="text" name="maxHumidity" placeholder="30s 最大解析次数" required>次</td>
            </tr>
        </table>
    </div>

<!--群晖存储-->
<div class="container">
    <table>
        <tr>
            <th colspan="6" class="jifang11">群晖nas巡检</th>
        </tr>
		<tr>
			<td >设备名称 </td>
			<td >磁盘健康状况 </td>
			<td >系统健康状态 </td>
			<td >存储池总空间 </td>
			<td >存储池剩余空间 </td>
			<td >存储池使用率 </td>
		</tr>
        <tr>
            <td class="td_bg" >
                <a href="http://10.106.1.201:5000/#/signin" style="color: blue; text-decoration: none;"  target="_blank">
                    nas-SA3600-201-数据库备份
                </a>
            </td>
            <td >{{ SA3600_201_disk_healthy }} </td>
			<td >{{ SA3600_201_system_healthy }} </td>
			<td >{{ SA3600_201_total_resize }} </td>
			<td >{{ SA3600_201_free_resize }} </td>
			<td >{{ SA3600_201_usage }} </td>
           
        </tr>
        <tr>
            <td class="td_bg" >
                <a href="http://10.106.1.202:5000/#/signin" style="color: blue; text-decoration: none;"  target="_blank">
                    nas-SA3600-202
                </a>
            </td>
            <td >{{ SA3600_202_disk_healthy }} </td>
			<td >{{ SA3600_202_system_healthy }} </td>
			<td >{{ SA3600_202_total_resize }} </td>
			<td >{{ SA3600_202_free_resize }} </td>
			<td >{{ SA3600_202_usage }} </td>
        </tr>
        <tr>
            <td class="td_bg" >
                <a href="http://10.108.15.39:5000/" style="color: blue; text-decoration: none;"  target="_blank">
                    财务nas存储池1
                </a>
            </td>
            <td  rowspan="3">{{ caiwu_nas_disk_healthy }} </td>
			<td  rowspan="3">{{ caiwu_nas_system_healthy }} </td>
			<td >{{ caiwu_nas1_total_resize }} </td>
			<td >{{ caiwu_nas1_free_resize }} </td>
			<td >{{ caiwu_nas1_usage }} </td>

        </tr>
		<tr>
            <td class="td_bg" >
                <a href="http://10.108.15.39:5000/" style="color: blue; text-decoration: none;"  target="_blank">
                    财务nas存储池2
                </a>
            </td>

			<td >{{ caiwu_nas2_total_resize }} </td>
			<td >{{ caiwu_nas2_free_resize }} </td>
			<td >{{ caiwu_nas2_usage }} </td>

        </tr>
		<tr>
            <td class="td_bg" >
                <a href="http://10.108.15.39:5000/" style="color: blue; text-decoration: none;"  target="_blank">
                    财务nas存储池3
                </a>
            </td>

			<td >{{ caiwu_nas3_total_resize }} </td>
			<td >{{ caiwu_nas3_free_resize }} </td>
			<td >{{ caiwu_nas3_usage }} </td>

        </tr>
       

    </table>
</div>


<!-- 华为存储OAV16相关信息 -->
<div class="container">
            <table>
                <tr>
                    <th colspan="6" class="cunchuOAV16">
                    <a href="https://10.106.132.113:8088/deviceManager/devicemanager/feature/login/login.html" style="color: white; text-decoration: none;" target="_blank">
                    华为存储-OAV16
                    </a>
                    </th>
                </tr>
                <tr>
                    <td class="td_bg">设备状态</td>
                    <td colspan="2">{{ oa_device_status_description }}</td>
                    <td class="td_bg">当前告警个数</td>
                    <td colspan="2">{{ oa_num_alarms }}</td>
                </tr>
                <tr>
                    <td class="td_bg">当前告警信息</td>
                    <td colspan="5" class="left-align"> {{ oa_alarm_details }}</td>
                </tr>
                <tr class="td_bg">
                    <td>名称：文件系统信息</td>
                    <td>健康状态</td>
                    <td>运行状态</td>
                    <td>总容量</td>
                    <td>可用容量</td>
                    <td>使用率</td>
                </tr>
            {% for fs in oa_file_systems %}
                <tr>
                    <td>{{ fs.doc_name }}</td>
                    <td>{{ fs.health_status }}</td>
                    <td>{{ fs.running_status }}</td>
                    <td>{{ fs.total_capacity }}</td>
                    <td>{{ fs.used_capacity }}</td>
                    <td>{{ fs.availableandalloccappacitypatio }}</td>
                </tr>
            {% endfor %}

                <tr class="td_bg">
                <td>名称：存储池信息</td>
                <td>健康状态</td>
                <td>运行状态</td>
                <td>总容量</td>
                <td>已使用容量</td>
                <td>空闲的容量</td>
            </tr>
            {% for storage_pool in oa_storage_pools %}
                <tr>
                    <td>{{ storage_pool.name }}</td>
                    <td>{{ storage_pool.health_status }}</td>
                    <td>{{ storage_pool.running_status }}</td>
                    <td>{{ storage_pool.user_total_capacity }}</td>
                    <td>{{ storage_pool.user_consumed_capacity }}</td>
                    <td>{{ storage_pool.oa_shiyong_baifenbi }}</td>
                </tr>
            {% endfor %}
            </table>
        </div>
<!-- 华为存储VM相关信息 -->
<div class="container">
            <table>
                <tr>
                    <th colspan="6" class="cunchuVM">
                    <a href="https://10.106.1.138:8088/deviceManager/devicemanager/feature/main/main.html" style="color: white; text-decoration: none;" target="_blank">
                    华为存储-VM
                    </a>
                    </th>
                </tr>
                <tr>
                    <td class="td_bg">设备状态</td>
                    <td colspan="2">{{ vm_device_status_description }}</td>
                    <td class="td_bg">当前告警个数</td>
                    <td colspan="2">{{ vm_num_alarms }}</td>
                </tr>
                <tr>
                    <td class="td_bg">当前告警信息</td>
                    <td colspan="5" class="left-align"> {{ vm_alarm_details }}</td>
                </tr>


                <tr class="td_bg">
                <td>名称：存储池信息</td>
                <td>健康状态</td>
                <td>运行状态</td>
                <td>总容量</td>
                <td>已使用容量</td>
                <td>可用容量</td>
            </tr>
            {% for storage_pool in vm_storage_pools %}
                <tr>
                    <td>{{ storage_pool.name }}</td>
                    <td>{{ storage_pool.health_status }}</td>
                    <td>{{ storage_pool.running_status }}</td>
                    <td>{{ storage_pool.user_total_capacity }}</td>
                    <td>{{ storage_pool.user_consumed_capacity }}</td>
                    <td>{{ storage_pool.user_free_capacity }}</td>
                </tr>
            {% endfor %}

                <tr class="td_bg">
                <td>名称:LUN</td>
                <td>运行状态</td>
                <td>健康状态</td>
                <td>总存储容量</td>
                <td>使用量</td>
                <td>使用率</td>

            <!-- 添加其他LUN信息字段 -->
                </tr>

        {% for lun_info in vm_lun_data[:2] %}
            <tr>
                <td>{{ lun_info.name }}</td>
                <td>{{ lun_info.health_status }}</td>
                <td>{{ lun_info.running_status }}</td>
                <td>{{ lun_info.total_saved_capacity }}</td>
                <td>{{ lun_info.alloccapacity }}</td>>
                <td>{{ lun_info.shiyong_baifenbi }}</td>>
            </tr>
        {% endfor %}


            </table>
        </div>
<!-- 华为存储FV5相关信息 -->
        <div class="container">
            <table>
                <tr>
                    <th colspan="6" class="cunchu5510">
                    <a href="https://10.106.1.131:8088/deviceManager/devicemanager/feature/login/login.html" style="color: white; text-decoration: none;" target="_blank">
                    华为存储-5510Fv5
                    </a>
                    </th>
                </tr>
                <tr>
                    <td class="td_bg">设备状态</td>
                    <td colspan="2">{{ device_status_description }}</td>
                    <td class="td_bg">当前告警个数</td>
                    <td colspan="2">{{ num_alarms }}</td>
                </tr>
                <tr>
                    <td class="td_bg">当前告警信息</td>
                    <td colspan="5" class="left-align"> {{ alarm_details }}</td>
                </tr>
                <tr>
                    <th>文件系统名称</th>
                    <th>健康状态</th>
                    <th>运行状态</th>
                    <th>总容量</th>
                    <th>可用容量</th>
                    <th>使用率</th>
                </tr>
                {% for file_system in file_systems %}
                    <tr>
                        <td>{{ file_system.name }}</td>
                        <td>{{ file_system.healthstatus }}</td>
                        <td>{{ file_system.runningstatus }}</td>
                        <td>{{ file_system.capacity }}</td>
                        <td>{{ file_system.availablecapcity }}</td>
                        <td>{{ file_system.availableandalloccappacitypatio }}</td>
                    </tr>
                {% endfor %}

                <tr class="td_bg">
                <td>名称：存储池信息</td>
                <td>健康状态</td>
                <td>运行状态</td>
                <td>总容量</td>
                <td>已用容量</td>
                <td>使用率</td>
            </tr>
            {% for storage_pool in storage_pools %}
                <tr>
                    <td>{{ storage_pool.name }}</td>
                    <td>{{ storage_pool.health_status }}</td>
                    <td>{{ storage_pool.running_status }}</td>
                    <td>{{ storage_pool.user_total_capacity }}</td>
                    <td>{{ storage_pool.user_consumed_capacity }}</td>
                    <td>{{ storage_pool.shiyong_baifenbi }}</td>
                </tr>
            {% endfor %}
                <tr class="td_bg">
                <td>名称:LUN</td>
                <td>运行状态</td>
                <td>健康状态</td>
                <td>总容量</td>
                <td>使用量</td>
                <td>使用率</td>
                </tr>

        {% for lun_info in fv_lun_data[:2] %}
            <tr>
                <td>{{ lun_info.name }}</td>
                <td>{{ lun_info.health_status }}</td>
                <td>{{ lun_info.running_status }}</td>
                <td>{{ lun_info.total_saved_capacity }}</td>
                <td>{{ lun_info.alloccapacity }}</td>
                <td>{{ lun_info.lun_shiyong_baifenbi }}</td>
            </tr>
        {% endfor %}

            </table>
        </div>

<!-- 联想存储-财务共享 -->
        <div class="container">
            <table>
                <tr>
                    <th colspan="6" class="cunchuLENOVOcaiwu" bgcolor="cc9900">
                    <a href="https://10.106.133.100/sysmgr/v4/" style="color: white; text-decoration: none;" target="_blank">
                    联想存储-财务共享
                    </a>
                    </th>
                </tr>
                <tr>
                    <td class="td_bg">存储告警日志</td>
                    <td colspan="5" class="left-align">{{ fssc_log_message }}</td>
                </tr>
                <tr>
                    <td class="td_bg">总存储空间</td>
                    <td > {{ fssc_storage_full_size_T }}</td>
                    <td class="td_bg">已使用空间</td>
                    <td > {{ fssc_storage_full_used_T }}</td>
                    <td class="td_bg">使用率</td>
                    <td > {{ fssc_storage_usage }}</td>
                </tr>
                <tr>
                    <td class="td_bg">fssc_nas分配空间</td>
                    <td > {{ storage_vloumes_json_size_T }}</td>
                    <td class="td_bg">fssc_nas已使用空间</td>
                    <td > {{ storage_vloumes_json_used_T }}</td>
                    <td class="td_bg">使用率</td>
                    <td > {{ caiwunas_usage }}</td>
                </tr>
            </table>
        </div>
<!-- 联想存储-NC -->
        <div class="container">
            <table>
                <tr>
                    <th colspan="6" class="cunchuLENOVOnc" BGCOLOR="CD5555">
                    <a href="https://10.106.133.120/sysmgr/v4/" style="color: white; text-decoration: none;" target="_blank">
                    联想存储-NC
                    </a>
                    </th>
                </tr>
                <tr>
                    <td class="td_bg">存储告警日志</td>
                    <td colspan="5" class="left-align">{{ nc_log_message }}</td>
                </tr>
                <tr>
                    <td class="td_bg">总存储空间</td>
                    <td > {{ nc_storage_full_size_T }}T</td>
                    <td class="td_bg">已使用空间</td>
                    <td > {{ nc_storage_full_used_T }}T</td>
                    <td class="td_bg">使用率</td>
                    <td > {{ nc_storage_usage }}</td>
                </tr>
                <tr>
                    <td class="td_bg">nas_muyuan分配空间</td>
                    <td > {{ nc_storage_volume_nas_muyuan_size }}G</td>
                    <td class="td_bg">nas_muyuan已使用空间</td>
                    <td > {{ nc_storage_volume_nas_muyuan_used }}G</td>
                    <td class="td_bg">使用率</td>
                    <td > {{ nc_storage_volume_nas_muyuan_useage }}%</td>
                </tr>
                <tr>
                    <td class="td_bg">ncdb_asm分配空间</td>
                    <td > {{ nc_storage_volume_ncdb_asm_size }}T</td>
                    <td class="td_bg">ncdb_asm已使用空间</td>
                    <td > {{ nc_storage_volume_ncdb_asm_used }}T</td>
                    <td class="td_bg">使用率</td>
                    <td > {{ nc_storage_volume_ncdb_asm_useage }}%</td>
                </tr>
                <tr>
                    <td class="td_bg">ncdb_asm2分配空间</td>
                    <td > {{ nc_storage_volume_ncdb_asm2_size }}T</td>
                    <td class="td_bg">ncdb_asm2已使用空间</td>
                    <td > {{ nc_storage_volume_ncdb_asm2_used }}T</td>
                    <td class="td_bg">使用率</td>
                    <td > {{ nc_storage_volume_ncdb_asm2_useage }}%</td>
                </tr>
                <tr>
                    <td class="td_bg">ncdb_back分配空间</td>
                    <td > {{ nc_storage_volume_ncdb_back_size }}T</td>
                    <td class="td_bg">ncdb_asm2ncdb_back已使用空间</td>
                    <td > {{ nc_storage_volume_ncdb_back_used }}T</td>
                    <td class="td_bg">使用率</td>
                    <td > {{ nc_storage_volume_ncdb_back_useage }}%</td>
                </tr>
                <tr>
                    <td class="td_bg">ncdb_ocr分配空间</td>
                    <td > {{ nc_storage_volume_ncdb_ocr_size }}G</td>
                    <td class="td_bg">ncdb_ocr已使用空间</td>
                    <td > {{ nc_storage_volume_ncdb_ocr_used }}G</td>
                    <td class="td_bg">使用率</td>
                    <td > {{ nc_storage_volume_ncdb_ocr_useage }}%</td>
                </tr>
                <tr>
                    <td class="td_bg">ncdg分配空间</td>
                    <td > {{ nc_storage_volume_ncdg_size }}T</td>
                    <td class="td_bg">ncdg已使用空间</td>
                    <td > {{ nc_storage_volume_ncdg_used }}T</td>
                    <td class="td_bg">使用率</td>
                    <td > {{ nc_storage_volume_ncdg_useage }}%</td>
                </tr>
                <tr>
                    <td class="td_bg">svm0_root分配空间</td>
                    <td > {{ nc_storage_volume_svm0_root_size }}G</td>
                    <td class="td_bg">svm0_root已使用空间</td>
                    <td > {{ nc_storage_volume_svm0_root_used }}G</td>
                    <td class="td_bg">使用率</td>
                    <td > {{ nc_storage_volume_svm0_root_useage }}%</td>
                </tr>
                <tr>
                    <td class="td_bg">svm_fc_root分配空间</td>
                    <td > {{ nc_storage_volume_svm_fc_root_size }}G</td>
                    <td class="td_bg">svm_fc_root已使用空间</td>
                    <td > {{ nc_storage_volume_svm_fc_root_used }}G</td>
                    <td class="td_bg">使用率</td>
                    <td > {{ nc_storage_volume_svm_fc_root_useage }}%</td>
                </tr>
                <tr>
                    <td class="td_bg">svm_nfs_root分配空间</td>
                    <td > {{ nc_storage_volume_svm_nfs_root_size }}G</td>
                    <td class="td_bg">svm_nfs_root已使用空间</td>
                    <td > {{ nc_storage_volume_svm_nfs_root_used }}G</td>
                    <td class="td_bg">使用率</td>
                    <td > {{ nc_storage_volume_svm_nfs_root_useage }}%</td>
                </tr>
            </table>
        </div>
</body>
</html>

